package com.miya.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.miya.demo.entity.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper extends BaseMapper<Role> {
    /**
     * 查询用户角色
     *
     * @param userId 用户id
     * @return {@link List}<{@link Role}>
     */
    List<Role> getByUserId(@Param("userId") Long userId);
}